
// test case import
import org.junit.Test;
import junit.framework.TestCase;

public class TestGetHelloWorldPrompt extends TestCase
{
	// test constructor
	public TestGetHelloWorldPrompt( String name )
	{
		super( name );
	}

	// tests the say() method in HelloWorld.java
	@Test public void testSay()
	{
		// create a new instance of the class under test
		HelloWorld hi = new HelloWorld();
		
		// this tests the say() method, and ensures
		// that it returns the value of "Hello World!"
		assertEquals( "Hello World!", hi.say() );
	}
	
	// main method
	public static void main( String args[] )
	{
		// run the test
		junit.textui.TestRunner.run( TestGetHelloWorldPrompt.class );
		
	}
}
